//
//  ClassifyItemCell.m
//  B2C
//
//  Created by xiaowu on 2017/7/28.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import "ClassifyItemCell.h"

@interface ClassifyItemCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UILabel *priceLabel;

@property (weak, nonatomic) IBOutlet UILabel *commentCountLabel;

@end

@implementation ClassifyItemCell

+ (CGSize)getSizeWithItemWidth:(CGFloat)width {
    CGFloat height = 0;
    height += width;
    height += 32 - 10;
    return CGSizeMake(width, height);
}

-(void)setModel:(CommodityModel *)Model{
    _Model = Model;
    [_iconImageView animationWithImageURL:_Model.gimg placeholderImage:PlaceholderImagePictures];
    _titleLabel.text = _Model.gname;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.backgroundColor = [UIColor whiteColor];
}

@end
